﻿<Window x:Class="GUI.Custom_Classes.AddRules"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="LEET - Add/Edit Rules"
        Name="RuleForm"
        MaxWidth="786" MinHeight="400" MaxHeight="420" MinWidth="786"
        ResizeMode="NoResize"
        BorderThickness="2"
        Background="WhiteSmoke"
        AllowDrop="True">
    <Grid>
        <DockPanel>
            
            <StackPanel DockPanel.Dock="Bottom" Orientation="Horizontal" HorizontalAlignment="Right" Height="45">
                <Button Name="CreateRule"  Width="65" Height="28" Margin="0,5,10,5" Click="SaveRuleButton">Save Rule</Button>
                <Button Name="CancelRule" Width="65" Height="28" Margin="10,5,30,5" Click="CancelButton">Cancel</Button>
            </StackPanel>
            
            <StackPanel DockPanel.Dock="Top" Orientation="Horizontal">
                <Label Margin="3,3,0,5" FontWeight="Bold">Rule Name: </Label>
                <TextBox Name="nameBox" Margin="10,3,5,5" MinWidth="450"></TextBox>
            </StackPanel>

            <StackPanel Orientation="Horizontal">
                <StackPanel DockPanel.Dock="Left" Orientation="Vertical" MinWidth="250" MaxWidth="250" Height="268" Margin="6,5,0,5">
                    <Border BorderThickness="1" BorderBrush="Gray">
                        <Label Name="LabelPrecond" FontWeight="Bold" HorizontalContentAlignment="Center">Preconditions</Label>
                    </Border>
                    <ListBox Name="SetofPreconds" SelectionMode="Single" Loaded="LoadList" MinHeight="245">
                        <ScrollViewer
                            VerticalScrollBarVisibility="Auto" 
                            HorizontalScrollBarVisibility="Auto"
                            ScrollViewer.ScrollChanged="PrecondScrollChanged">
                        </ScrollViewer>
                    </ListBox>
                </StackPanel>

                <StackPanel DockPanel.Dock="Left" Orientation="Vertical" MinWidth="250" MaxWidth="250" Height="268">
                    <Border BorderThickness="1" BorderBrush="Gray">
                        <Label Name="LabelAct" FontWeight="Bold" HorizontalContentAlignment="Center">Implications</Label>
                    </Border>
                    <ListBox Name="SetofActions" SelectionMode="Single" Loaded="LoadList" MinHeight="245">
                        <ScrollViewer
                            HorizontalScrollBarVisibility="Auto"
                            VerticalScrollBarVisibility="Auto"
                            ScrollViewer.ScrollChanged="ActionScrollChanged">
                        </ScrollViewer>
                    </ListBox>
                </StackPanel>

                <StackPanel DockPanel.Dock="Left" Orientation="Vertical" MinWidth="250" MaxWidth="250" Height="268">
                    <Border BorderThickness="1" BorderBrush="Gray">
                        <Label Name="LabelCons" FontWeight="Bold" HorizontalContentAlignment="Center">Consequences</Label>
                    </Border>
                    <ListBox Name="SetofCons" SelectionMode="Single" Loaded="LoadList" MinHeight="245">
                        <ScrollViewer
                            HorizontalScrollBarVisibility="Auto"
                            VerticalScrollBarVisibility="Auto"
                            ScrollViewer.ScrollChanged="ConsScrollChanged">
                        </ScrollViewer>
                    </ListBox>
                </StackPanel>
            </StackPanel>
            
            

        </DockPanel>
    </Grid>
</Window>
